package com.zuijin.vue2blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 音乐表
 * </p>
 *
 * @author 醉瑾
 * @since 2022-04-24
 */
@TableName("music")
@ApiModel(value = "Music对象", description = "音乐表")
public class Music implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("歌曲名")
    @TableField("name")
    private String name;

    @ApiModelProperty("专辑图片地址")
    @TableField("imgUrl")
    private String imgUrl;

    @ApiModelProperty("歌曲地址")
    @TableField("songUrl")
    private String songUrl;

    @ApiModelProperty("歌手")
    @TableField("singer")
    private String singer;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getSongUrl() {
        return songUrl;
    }

    public void setSongUrl(String songUrl) {
        this.songUrl = songUrl;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    @Override
    public String toString() {
        return "Music{" +
        "id=" + id +
        ", name=" + name +
        ", imgUrl=" + imgUrl +
        ", songUrl=" + songUrl +
        ", singer=" + singer +
        "}";
    }
}
